const baseUrl = 'https://deh.lzsjyfz.com/api/';

const urls = {
  "login" : "wechat/mini/login", //登录
  // "profile" : "v1/profile", //退出
  // "register" : "v1/register", //注册
  // "refresh" : "v1/refresh", // 刷新token
  'defaultscene' :'v1/defaultscene',

  //goodcate good vr
  'goodcate'  : 'v1/goodcate',
  'goods'  : 'v1/goods',
  'good':'v1/good',
  'vr'  : 'v1/vr',
  'live'  : 'v1/live',

  

}

function getUrl(name=null) {
  if(name) {
    return baseUrl+urls[name];
  }
  return baseUrl;
}

export default getUrl;